class CreateSessions < ActiveRecord::Migration
  def self.up
    transaction do
      create_table :sessions do |table|
        table.column :session_id, :string
        table.column :data, :text
        table.column :updated_at, :datetime
      end
    end
    
    add_index :sessions, :session_id, :unique => true
    add_index :sessions, :updated_at
    
  end
  
  def self.down
    drop_table :sessions
  end
end